<template>
	<view>
		<web-view :src="httpurl"></web-view>
	</view>
</template>

<script>
	import myRequest from '@/api/index.js'
	export default {
		data() {
			return {
				gas_id: '',
				gun_no: '',
				httpurl: ""
			}
		},
		onLoad(option) {
			this.gas_id = option.gas_id
			this.gun_no = option.gun_no
			this.getPayurl()
		},
		methods: {
			async getPayurl() {
				let {
					gas_id,
					gun_no
				} = this
				let res = await myRequest.getOilpay({
					gas_id: gas_id,
					gun_no: gun_no
				})
				if (res.status) {
					this.httpurl = res.url
				}
			}
		}
	}
</script>

<style>
</style>